<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
		<script>
			function GetQueryString(name){
				var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
				var r = window.location.search.substr(1).match(reg);
				if(r!=null)return unescape(r[2]); return null;
			}



			$(function(){
				var code =GetQueryString('code');
				console.log('code='+code);
				$("#ok").text(code);
			});

		</script>
	</head>

	<body>
		ok123!!!<br/>
		<div id="ok"></div>
	</body>
</html>
